class CreateAppliedAccounts < ActiveRecord::Migration
  def self.up
    create_table :applied_accounts do |t|
      t.string :code, :null => false
      t.string :name, :null => false 
      t.string :email
      t.string :section, :null => false
      t.string :password, :null => false
      t.string :onetime_code, :limit => 60, :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :applied_accounts
  end
end
